// 组件样式
.uni-swipe {
  border-radius: 8px;
}

// 面板
.uni-swipe {
  border-bottom: 1px solid $border-bd;
  border-radius: 0;
}

.w-full {
	width: 100% !important;
	min-width: 100% !important;
}

.panel_content_row_item_value_input {
	padding: 0 4px;
	border-radius: 4px;
	background-color: #efefef;
	
	&.flex-1 {
		flex: 1;
	}
}

.input-placeholder {
	color: $font-hd;
	font-size: 14px
}

.panel {
  padding: 10px;
  background-color: #fff;
  position: relative;
  
  &.bottomBorder {
	  border-bottom: 1px solid #F2F6FC;
  }

  .panel_title {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
	
	.tag {
		margin-left: 8px;
		font-size: 12px;
		border-radius: 5px;
		padding: 3px 10px;
		color: #909399;
		background-color: #e9e9eb;
		
		&.review {
			color: #fff;
			background-color: #67c23a;
		}
		&.save {
			color: #fff;
			background-color: #FF4E74;
		}
	}

    .panel_title_left {
      flex: 1;
	  display: flex;
	  align-items: center;
      font-weight: bold;
      font-size: 18px;
    }
  }

  .panel_content {
    margin-bottom: 4px;

    .panel_content_row {
      display: flex;
      margin-bottom: 8px;

      .panel_content_row_item {
        flex: 1;
        display: flex;
        font-size: 14px;
        align-items: center;
		
		&.align-items-start {
			align-items: flex-start;
			.panel_content_row_item_title {
				line-height: 23px;
			}
		}

        .panel_content_row_item_title {
          color: $font-hc;
        }

        .panel_content_row_item_value {
			color: $font-ha;
			flex: 1;
			display: flex;
			align-items: center;
			justify-content: space-between;

			::v-deep.uni-input-input {
				color: $font-ha;
				font-size: 14px;
			}


			.input-text {
				font-size: 13px;
				margin-left: 4px;
				width: 36px;
				color: #2678be;
			}

			i {
				font-size: 13px;
			}
        }
		.panel_content_row_item_remark {
			color: $font-ha;
			flex: 1;
			display: flex;
			align-items: center;
			justify-content: space-between;
		
			::v-deep.uni-input-input {
				color: $font-ha;
				font-size: 14px;
			}
		
		
			.input-text {
				font-size: 13px;
				margin-left: 4px;
				width: 300px;
				height: 40px;
		
				border-radius: 8px;
				border: 2px solid #999999;
			}
		
			i {
				font-size: 13px;
			}
		}
		
		.trace-back {
			flex: 1;
			flex-direction: column;
			.trace-back-item {
				width: 100%;
				color: #333333;
				font-size: 28rpx;
				background-color: #f7f7f7;
				margin: 8rpx 0;
				padding: 4rpx 10rpx;
				box-sizing: border-box;
				border-radius: 4px;
				display: flex;
				align-items: center;
				justify-content: space-between;
			}
		}

      }
    }
  }

  .panel_dashboard {
    display: flex;
    justify-content: space-around;
    background: #fbfbfb;
    border-radius: $uni-border-radius-lg;
    padding: 4px 0;
    margin-top: 10px;
	
	.input-border {
		::v-deep.uni-input-input {
			border-bottom: 1px solid #dde0e5;
		}
	}

    .panel_dashboard_item {
      text-align: center;
      position: relative;
      flex: 1;
	  
	  
	  
	  
	  
	input {
		padding: 0 48px;
		box-sizing: border-box;
	}
	  
	.panel_dashboard_item_edit {
		position: absolute;
		right: 8px;
		top: 50%;
		transform: translateY(-50%);
		
		.input-text {
			font-size: 13px;
			margin-left: 4px;
			width: 36px;
			color: #2678be;
		}

		i {
			font-size: 13px;
		}
	}
	  
	  

      &:last-child:after {
        width: 0;
      }

      &:afteR {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translate(0, -50%);
        width: 1px;
        height: 20px;
        background: #eee;
      }

      .panel_dashboard_item_number {
        font-size: 18px;
        font-weight: bold;

        &.success {
          color: $uni-color-success;
        }

        &.error {
          color: $uni-color-error;
        }

        &.default {
          color: $font-hc;
        }
      }

      .panel_dashboard_item_value {
        font-size: 12px;
        color: $font-hc;
      }
    }
  }
}

// 底部按钮
.footerPanel {
  height: 60px;

  .footerPanel_body {
    left: 0;
    bottom: 0;
    width: calc(100% - 14px);
    display: flex;
    position: fixed;
    padding: 10px 7px;

    .footerBtn {
      height: 40px;
      margin: 0 5px;
      display: flex;
      line-height: 1;
      font-size: 14px;
      border-radius: 4px;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 5px rgba(201, 201, 201, 0.5);
      color: #fff;
	  
	  &.onlyBtn {
		flex: 1 !important;
		// margin: 0 !important;
	  }

      &.save {
        background-color: $uni-color-success;
        width: 150px;
        flex-shrink: 0;
      }

      &.reset {
        background: $bg-page;
        color: $font-hb;
        width: 80px;
        flex-shrink: 0;
      }
	  &.concle {
		    background-color: #909399;
		    width: 100px;
		    flex-shrink: 0;
		  }
      &.scan {
        background: $primary;
		
        flex: 1;
      }
    }

    .btn_icon {
      margin-right: 8px;
    }
  }
}

.loading-btn {
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	
	.btn_icon {
		margin-right: 8px;
	}
	.icon-rotation {
		animation: rotation 2s linear infinite;
	}

	@keyframes rotation {
		from {
			transform: rotate(0deg)
		}

		to {
			transform: rotate(360deg)
		}
	}	
}


// dialog弹窗
.popup_body {
  padding: 12px 0;
  background-color: #ffffff;
  border-radius: 12px 12px 0 0;
  display: flex;
  box-sizing: border-box;
  flex-direction: column;

  .popup_top {
    display: flex;
    align-items: center;
    width: calc(100% - 24px);
    margin: auto;
    position: relative;
    justify-content: space-between;

    .popup_top_title {
      font-weight: bold;
    }

    .popup_top_count {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      font-size: 14px;
    }

    .popup_top_close {
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 100%;
      background-color: $border-bb;
    }
  }

  .popup_content {
    box-sizing: border-box;
    display: flex;
    flex: 1;
    flex-direction: column;
    position: relative;

    .popup_content_scaning {
      text-align: center;
      width: 100%;
      margin-top: 10px;
      flex: 1;
      display: flex;
      flex-direction: column;

      input {
        width: calc(100% - 24px);
        margin: auto;
        flex: 1;
        background: $bg-page;
        border-radius: 10px;
        border: 1px solid $border-bb;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      textarea {
        width: calc(100% - 24px);
        margin: auto;
        flex: 1;
        background: $bg-page;
        border-radius: 10px;
        border: 1px solid $border-bb;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .popup_content_scaning_placeholder {
        font-size: 22px;
        font-weight: bold;
        color: $font-hc;
      }
    }

    .placeholder_class {
      color: $font-hc;
      font-size: 14px;
    }

    .popup_content_info {
      flex: 1;
      position: relative;

      .popup_content_info_scroll {
        padding: 15px 0;
        box-sizing: border-box;
        height: calc(80vh - 92px);
      }

      .material {
        margin: 0 auto 15px auto;
        width: calc(100% - 24px);
        padding: 12px;
        font-size: 14px;
        border-radius: 5px;
        box-sizing: border-box;
		box-shadow: 0 0 1px 1px inset $border-ba;

        .material_title {
          color: $font-ha;
          font-size: 18px;
          font-weight: bold;
          margin-bottom: 12px;
        }

        .material_row {
          display: flex;
          flex-wrap: wrap;
          color: $font-hc;

          .material_row_item {
            display: flex;
            margin-right: 12px;
            align-items: center;
            margin-bottom: 8px;

            &.full_width {
              width: 100%;
            }

            .material_row_item_title {
              margin-right: 8px;
            }

            .material_row_item_value {
              color: $font-ha;
            }

            .material_row_item_input {
              flex: 1;
              color: $font-ha;
              padding: 8px 12px;
              border-radius: 8px;
              border: 1px solid $border-bb;
            }
          }
        }
      }
    }

    .popup_content_btn {
      display: flex;
      align-content: center;
      width: calc(100% - 14px);
      margin: auto;

      .popup_content_btn_item {
        height: 40px;
        margin: 0 5px;
        display: flex;
        line-height: 1;
        font-size: 14px;
        border-radius: 4px;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 5px rgba(201, 201, 201, 0.5);
        color: #fff;

        &.reset {
          background-color: $uni-color-success;
          width: 100px;
          flex-shrink: 0;
        }

        &.cancel {
          background: $bg-page;
          color: $font-hb;
          width: 80px;
          flex-shrink: 0;
        }

        &.submit {
          background: $primary;
          flex: 1;
        }
      }
    }
  }
}

.topTab {
  margin-bottom: 10px;
  height: 50px;
  
  &.no-bottom {
	  margin-bottom: 0 !important;
  }

  .tabTab_body {
    width: 100%;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    /*  #ifndef  H5  */
    top: 0;
    /*  #endif  */
    /*  #ifdef  H5  */
    top: 44px;
    /*  #endif  */
    background-color: #fff;
    z-index: 11;
    box-shadow: 0 3px 5px #eee;
  }
}

.topTab_item {
  flex: 1;
  text-align: center;
  font-size: 15px;
  height: 50px;
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative;
  font-weight: bold;

  &:active {
    background: $bg-hover;
  }

  &:after {
    content: "";
    width: 1px;
    height: 15px;
    background: #eee;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
  }

  &:last-child:after {
    width: 0;
  }

  .topTab_item_arrow {
    color: $font-hc;
    font-size: 8px;
    margin-left: 5px;
  }
}

// 布局
.flex {
  display: flex;
}

.items_center {
  align-items: center;
}

.items_end {
  align-items: flex-end;
}

.justify_center {
  justify-content: center;
}

.justify_between {
  justify-content: space-between;
}

.justify_around {
  justify-content: space-around;
}


.flex-list {
	display: flex;
	line-height: 24px;

	.flex-left {
		display: inline-flex;
		flex-direction: column;
		margin-right: 8px;

		.flex-title-row {
			display: flex;
			font-size: 14px;
			color: $font-hc;

			.flex-title {
				flex: 1;
				text-align-last: justify;
			}
		}
	}

	.flex-right {
		font-size: 14px;
	}
}

.flex-list-btn {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	box-sizing: border-box;
	margin: 10px 0 4px 0;
	
	.flex-list-btn-item {
		min-width: 50px;
		margin-left: 12px;
		height: 24px;
		font-size: 12px;
		color: $primary;
		border: 1px solid $primary;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0 15px;
		border-radius: 4px;
	}
}

.top-container {
	padding: 8px 0;
	
	&.no-top {
		padding-top: 0 !important;
	}
	
	&.no-bottom-padding {
		padding-bottom: 0 !important;
	}
	
	.top-container-inner {
		
		&.top-container-fiexd {
			position: fixed;
			left: 0;
			right: 0;
		}
		
		uni-text {
			font-size: 12px;
			color: #999999;
		}

		::v-deep.uni-date {
			text-align: right;

			.uni-date-editor {
				font-size: 12px;
				color: #999999;
			}
		}
	}
	
	uni-text {
		font-size: 12px;
		color: #999999;
	}
	
	uni-picker {
		display: flex;
		align-items: center;
	
		.picker {
			min-width: 40vw;
			text-align: right;
			font-size: 12px;
			color: #999999;
		}
	}
	
	::v-deep.uni-date {
		text-align: right;
	
		.uni-date-editor {
			font-size: 12px;
			color: #999999;
		}
	}
}
.header-remark{
		width: 100%;
		height: 30px;
		color: $font-ha;
		margin-bottom: 20px;
		margin-left: 10px;
		.input-text{
			width: 90%;
			height: 40px;
			font-size: 13px;
			color: #2678be;
			border-radius: 8px;
			border: 2px solid #999999;
		}
	}
.allCheck{
		margin-left: 10px;

	}

uni-button[disabled] {
	opacity: 1 !important;
	background-color: #ffa6b9 !important;
}

.page-scanning {
	width: 70px;
	height: 70px;
	overflow: hidden;
	border-radius: 35px;
	background-color: $primary;
	box-shadow: 2px 2px 8px 5px #ebebeb;
	// position: fixed;
	left: 70vw;
	top: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;

	.page-scanning-icon {
		color: #fff;
		font-size: 30px
	}
}